<form id="pagerForm" method="post" action="{:U($module_name.'/'.$action_name."?model=".$model)}">
    <input type="hidden" name="pageNum" value="{$pageNum}" />
    <input type="hidden" name="numPerPage" value="{$numPerPage}" />
    <input type="hidden" name="orderField" value="{$orderField}" />
    <input type="hidden" name="orderDirection" value="{$orderDirection}" />
</form>
<div class="pageHeader">
    <form rel="pagerForm" {if $selproid}onsubmit="return dwzSearch(this, 'dialog');" {else} onsubmit="return navTabSearch(this);" {/if} action="{:U($module_name.'/'.$action_name)}" method="post">
       <input type ='hidden' name='selproid' value="{$selproid}" />
	    <div class="searchBar">
            <ul class="searchContent">
                <li style="width:200px;">
                <label style="width: 50px;">关键字：</label>
                <input type="text" name="keywords" value="{$keywords}"/>
                </li>
                <li style="width: 100px;">
                <select class="combox" name="sfield">
                    <option value="title" >套餐标题</option>
                 
                </select>
				<input type="hidden" name="sfield_name" value="title" />		
				
                </li>
				
				<li>
					类型：
					<select name="type">
						<option value=''>请选择</option>
						<option value='SERIES' {if $type == 'SERIES'}selected{/if}>组合套餐</option>
						<option value='BIG' {if $type == 'BIG'}selected{/if}>大宗批发</option>
					</select>
				</li>
				
				
                <li style="padding-top:0;"><div class="buttonActive"><div class="buttonContent"><button type="submit">搜索</button></div></div></li>
            </ul>
        </div>
    </form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="edit" href="{:U('Sales/package_edit')}" target="dialog" width="600" height="500"><span>添加套餐</span></a></li>
			<!-- <li><a class="delete" href="demo/common/ajaxDone.html?uid={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="demo_page4.html?uid={sid_user}" target="navTab"><span>修改</span></a></li>
			
			<li class="line">line</li>
			<li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
			-->
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th>套餐标题</th>
				<th>套餐类型</th>
				<th>套餐价格</th>
				<th>套餐个数</th>				
				<th>开始时间</th>
				<th>结束时间</th>			
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="vo">
			<tr target="sid_user" rel="9">
				<td><a href='{:U('Sales/package_pro_index',array('id'=>$vo['id']))}' target="navTab" title="查看套餐内产品" >{$vo.title}</a></td>
				<td>{if $vo['type'] == 'BIG'}大宗批发{elseif $vo['type'] == 'SERIES'}组合套餐{/if}</td>
				<td>{$vo['all_special_price']/100}</td>
				<td>{$vo.prerequ}</td>				
				<td>{if $vo['starttime']}{$vo.starttime|date='Y-m-d H:i:s',###}{else}不限制{/if}</td>
				<td>{if $vo['endtime']}{$vo.endtime|date='Y-m-d H:i:s',###}{else}不限制{/if}</td>
				<td>
					{if $selproid && $type=='SERIES'}
					<a title="确定加入此套餐？" target="ajaxTodo" href="{:U('Sales/package_addproduct',array('id'=>$vo['id'],'proid'=>$selproid))}" rel='dialogp' class="btnSelect">选择套餐</a>
					{/if}
					<a class="btnEdit" href="{:U('Sales/package_edit',array('id'=>$vo['id']))}" target="dialog" width="600" height="500" title="编辑">编辑</a>
					<a class="btnDel" href="{:U('Sales/package_del',array('id'=>$vo['id']))}" target="navTab" title="删除">删除</a>
					
				</td>
			</tr>
			</volist>
		</tbody>
	</table>
	<include file="Index:pages" />
</div>
